<?php
namespace App\Http\Controllers\Goods;
use App\Http\Controllers\Controller;
use App\Services\Goods\Goods;
use Illuminate\Http\Request;

class GoodsController extends Controller
{
    public  $goods;
    public function __construct(Goods $goods)
    {
        $this->goods = $goods;
    }
    //展示兑换商品接口
    public function goodsShow(){
        return $this->goods->goodsShow();
    }
    //要兑换的商品
    public function goodsFind(Request $request){
        $id =  $request->get('id');
        return $this->goods->goodFind($id);
    }
}